package com.biz.primus.model.tms.vo;

import com.biz.primus.base.global.GlobalValue;
import com.biz.primus.base.global.Ref;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * TmsLogisticsBaseReqVo
 *
 * @author JKLiues
 * @date 2017年11月23日
 */
@Getter
@Setter
@ApiModel("配送单基础对象")
public class TmsLogisticsBaseReqVo extends BaseTmsReqVo {

    private static final long serialVersionUID = -143830934071238219L;

    @Ref(GlobalValue.lon)
    @NotNull(message = "经度不能为空")
    @ApiModelProperty(value = "经度",required = true)
    private BigDecimal longitude;

    @Ref(GlobalValue.lat)
    @NotNull(message = "纬度不能为空")
    @ApiModelProperty(value = "纬度",required = true)
    private BigDecimal latitude;
}